package com.lzy.system.organization.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lzy.system.organization.entity.SysRole;
import com.lzy.system.organization.entity.SysUserMapping;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户映射
 * </p>
 *
 * @author lcc
 * @since 2023-11-22
 */
@Data
@ApiModel(value = "SysUserMappingVo对象", description = "用户映射")
public class SysUserMappingVo extends SysUserMapping {

    private Long id;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("密码")
    @TableField(select = false)
    private String password;

    @ApiModelProperty("1开启0关闭")
    private Integer status;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("创建时间")
    private Date createdate;

    @ApiModelProperty("性别(1男2女)")
    private Integer sex;

    @ApiModelProperty("电话")
    private String telephone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("用户id")
    private Long user_id;

    @ApiModelProperty("部门id")
    private Long dep_id;

    @ApiModelProperty("公司id")
    private Long company_id;

    @ApiModelProperty("是否管理0否1是")
    private Integer is_manage;

    @ApiModelProperty("默认身份0否1是")
    private Integer is_def;

    @ApiModelProperty("排序")
    private Integer order_index;

    @ApiModelProperty("所属部门路径")
    private String dep_name_path_full;

    @ApiModelProperty("角色")
    private List<SysRole> roles;
}
